/* @INLINE FILE promo.bloc.js =============================================================
	* Promo functions
	* 
	* VAR
	* promo
    * launchPromoTimeout
    *
	* FUNC
	* this.startPromo
    * this.promo_change_name
    * this.promo_close
    * run_promo
    * this.endPromo
	*/
	
    var promo=false;
    var launchPromoTimeout;
    this.startPromo = function(){
    	if(run_promo()){
    		fc_toolbar.prompt.render_promo(extractShortName(get_screen_name(),''));
    		fc_toolbar.prompt.tgl_dialog();
    		launchPromoTimeout=setTimeout("fc_chat.endPromo()",15000);
        	put_cdata(1,15);
    	}
		promo=true;
    };
    this.promo_change_name = function(){
    	if(toolbar.minimized){
    		toolbar.toggle();
    	}
    	fc_chat.sign_in(null,1)
    };
    this.promo_close = function(){
    	fc_chat.close_boxes();
    };
    var run_promo = function(){
    	if(!promo&&get_cdata(15)!=1&&!config.noshow&&config.toolbar_mode==2&&!mobile&&!is_popup&&guest){
    		return true
    	}else{
    		return false;
    	}
    };
    this.endPromo = function(){
    	fc_toolbar.prompt.tgl_dialog();
    };
    //promo.bloc.js =============================================================@END FILE*/